import vnpy.trader.gateway as gateway

if gateway.sgateway_using == 'openctp' :
    from .openctp.vnctpmd import MdApi
    from .openctp.vnctptd import TdApi
elif gateway.sgateway_using == 'cp_ctp' :
    from .cp_ctp.vnctpmd import MdApi
    from .cp_ctp.vnctptd import TdApi
else :
    from .ctp.vnctpmd import MdApi
    from .ctp.vnctptd import TdApi

from .ctp_constant import *
